package com.ruoyi.business.mapper;

import com.ruoyi.business.User;
import com.ruoyi.business.UserCategory;
import com.ruoyi.business.vo.UserCategoryVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserCategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserCategory record);

    int insertSelective(UserCategory record);

    UserCategory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserCategory record);

    int updateByPrimaryKey(UserCategory record);

    List<UserCategoryVO> listByUId(Long uId) ;

    List<User> findByVipAndCid(@Param("vip") Integer vip, @Param("cId") Integer cId);

    UserCategory selectByCidAndUid(@Param("cId") Integer cId, @Param("userId") Long userId);
}